package com.rpj.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value="UserDto",description="多条件分页查询条件")
public class UserDto {
	@ApiModelProperty(value="每页数据条数",name="limit")
	private int limit=5;//每页数据条数
	@ApiModelProperty(value="当前第几页",name="page")
	private int page=1;//当前第几页
	@ApiModelProperty(value="排序字段名称",name="orderBy")
	private String orderBy;//排序字段名称(例如：LoginName)
	@ApiModelProperty(value="用户名",name="userName")
	private String userName;//用户名
	@ApiModelProperty(value="开始时间",name="beginDate")
	private String beginDate;//开始时间
	@ApiModelProperty(value="结束时间",name="endDate")
	private String endDate;//结束时间
	@ApiModelProperty(value="是否锁定",name="isLock")
	private String isLock;//是否锁定
	//private String token;//数据库密钥 
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public int getPage() {
		return (page-1)*limit;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getIsLock() {
		return isLock;
	}
	public void setIsLock(String isLock) {
		this.isLock = isLock;
	}
	public UserDto(int limit, int page, String orderBy, String userName, String beginDate, String endDate,
			String isLock) {
		super();
		this.limit = limit;
		this.page = page;
		this.orderBy = orderBy;
		this.userName = userName;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.isLock = isLock;
	}
	public UserDto() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
